import Vue from 'vue'
import Router from 'vue-router'
import main_container from '@/view/main_container'
import demo from '@/view/demo/demo'
import children_page from '@/view/demo/children_page'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'main_container',
      component: main_container,
      children: [
        {
          path: 'children_page',
          name: 'children_page',
          component: children_page
        }
      ]
    },
    {
      path: '/demo',
      name: 'demo',
      component: demo
    }
  ]
})
